package com.wy2cloud.authorize.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.wy2cloud.authorize.filter.PrefixPathHandleFilter;

@Configuration
public class ProjectConfig {
	
	@Bean
    public FilterRegistrationBean filterRegist() {  
        FilterRegistrationBean frBean = new FilterRegistrationBean();  
        frBean.setFilter(new PrefixPathHandleFilter());
        frBean.addUrlPatterns("/*");
        frBean.setOrder(PrefixPathHandleFilter.DEFAULT_ORDER);
        return frBean;  
    }

}
